package com.pro.service;

import com.pro.pojo.JsCourseRecord;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public interface JsCourseRecordService {
    //表的查询
    public List<JsCourseRecord> selectProduct(String result,Integer limit,Integer page);
    public Integer countProduct(String result);

    //三个输入框的查询
    public List<JsCourseRecord> selectThree(String productName,
                                            String title,
                                            String trueName,
                                            Integer limit,
                                            Integer page);
    public Integer countThree(String productName, String title, String trueName);


    //高级检索查询
    public List<JsCourseRecord> selectGaoJi(String productCode,
                                            String title,
                                            String productName,
                                            String currentpriceProduct,
                                            String trueName,
                                            String result,
                                            Integer limit,
                                            Integer page);
    public Integer countGaoJi(String productCode,
                              String title,
                              String productName,
                              String currentpriceProduct,
                              String trueName,
                              String result);


    //审核
    public Boolean insertRecord(JsCourseRecord jsCourseRecord);

    public Boolean addJsCourseRecord(JsCourseRecord jsCourseRecord);

    public List<JsCourseRecord> getDetailed(Integer productId);
    //商品待审核数量
    public int productRecord();
}
